package hd.cls6;

import java.io.*;

/**
 * @author oldliu
 * @since 1.0
 */
public class WriteInt {
    public static void main(String[] args) {
        try {
//            Student stu = new Student("廖佳仪", 20, "138743838383");
//            ObjectOutputStream oout = new ObjectOutputStream(new FileOutputStream("f:/stu.obj"));
//            oout.writeObject(stu);
//            oout.close();
            ObjectInputStream oin = new ObjectInputStream(new FileInputStream("f:/stu.obj"));
            Student s2 = (Student) oin.readObject();
            System.out.println(s2);
            oin.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
